package com.atguigu.cloud.sevice;

import com.atguigu.cloud.entities.Merchant;
import com.atguigu.cloud.tool.load.page.PaginationInterface;

import java.util.List;

/**
 * @Auter zzh
 * @Date 2024/11/13
 */
public interface MerchantService  extends PaginationInterface<Merchant> {
    Merchant getById(Integer id);
    List<Merchant> getAll();
    int add(Merchant merchant);
    int delete(Integer id);
    int update(Merchant merchant);

    boolean onlyName(String name);
    //根据名字返回id
    Integer getIdByName(String name);

}
